package avicit.bdp.dcs.desensitization.service;

import avicit.bdp.common.base.BaseService;
import avicit.bdp.dcs.desensitization.dao.DesensitizationPolicyDao;
import avicit.bdp.dcs.desensitization.dto.DcsDesensitizationPolicyDTO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @金航数码科技有限责任公司
 * @作者：developer
 * @邮箱：developer@avic-digital.com
 * @创建时间： 2020-08-03 09:18
 * @类说明：
 * @修改记录：
 */
@Service
@Transactional
public class DesensitizationPolicyService extends BaseService<DesensitizationPolicyDao, DcsDesensitizationPolicyDTO> {

    private static final Logger logger = LoggerFactory.getLogger(DesensitizationPolicyService.class);

    public List<DcsDesensitizationPolicyDTO> getPolicyListByRuleId(String ruleId){
        DcsDesensitizationPolicyDTO policyQuery = new DcsDesensitizationPolicyDTO();
        policyQuery.setRuleId(ruleId);
        return this.selectList(policyQuery);
    }

}